<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct formatting_context</title>
<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../../index.html" title="Chapter 1. Boost.Log v2">
<link rel="up" href="../basic_fo_idm45961919184896.html#idm46846459100176" title="Description">
<link rel="prev" href="../basic_fo_idm45961919184896.html" title="Class template basic_formatting_sink_frontend">
<link rel="next" href="formatting_context/cleanup_guard.html" title="Class cleanup_guard">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../basic_fo_idm45961919184896.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_fo_idm45961919184896.html#idm46846459100176"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="formatting_context/cleanup_guard.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.log.sinks.basic_fo_idm45961919184896.formatting_context"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct formatting_context</span></h2>
<p>boost::log::sinks::basic_formatting_sink_frontend::formatting_context</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../../sinks.html#header.boost.log.sinks.basic_sink_frontend_hpp" title="Header &lt;boost/log/sinks/basic_sink_frontend.hpp&gt;">boost/log/sinks/basic_sink_frontend.hpp</a>&gt;

</span>

<span class="keyword">struct</span> <a class="link" href="formatting_context.html" title="Struct formatting_context">formatting_context</a> <span class="special">{</span>
  <span class="comment">// member classes/structs/unions</span>

  <span class="keyword">class</span> <a class="link" href="formatting_context/cleanup_guard.html" title="Class cleanup_guard">cleanup_guard</a> <span class="special">{</span>
  <span class="keyword">public</span><span class="special">:</span>
    <span class="comment">// <a class="link" href="formatting_context/cleanup_guard.html#boost.log.sinks.basic_fo_idm45961919184896.formatting_context.cleanup_guardconstruct-copy-destruct">construct/copy/destruct</a></span>
    <span class="keyword">explicit</span> <a class="link" href="formatting_context/cleanup_guard.html#idm45961919181216-bb"><span class="identifier">cleanup_guard</span></a><span class="special">(</span><span class="identifier">formatting_context</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
    <a class="link" href="formatting_context/cleanup_guard.html#idm45961919179408-bb"><span class="identifier">cleanup_guard</span></a><span class="special">(</span><span class="identifier">cleanup_guard</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span>
    <span class="identifier">cleanup_guard</span> <span class="special">&amp;</span> <a class="link" href="formatting_context/cleanup_guard.html#idm45961919178160-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">cleanup_guard</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span>
    <a class="link" href="formatting_context/cleanup_guard.html#idm45961919179696-bb"><span class="special">~</span><span class="identifier">cleanup_guard</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>
  <span class="comment">// <a class="link" href="formatting_context.html#boost.log.sinks.basic_fo_idm45961919184896.formatting_contextconstruct-copy-destruct">construct/copy/destruct</a></span>
  <a class="link" href="formatting_context.html#idm45961919171344-bb"><span class="identifier">formatting_context</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="formatting_context.html#idm45961919171056-bb"><span class="identifier">formatting_context</span></a><span class="special">(</span><span class="keyword">unsigned</span> <span class="keyword">int</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
                     <span class="identifier">formatter_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// public data members</span>
  <span class="keyword">const</span> <span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">m_Version</span><span class="special">;</span>  <span class="comment">// Object version. </span>
  <span class="identifier">string_type</span> <span class="identifier">m_FormattedRecord</span><span class="special">;</span>  <span class="comment">// Formatted log record storage. </span>
  <span class="identifier">stream_type</span> <span class="identifier">m_FormattingStream</span><span class="special">;</span>  <span class="comment">// Formatting stream. </span>
  <span class="identifier">formatter_type</span> <span class="identifier">m_Formatter</span><span class="special">;</span>  <span class="comment">// Formatter functor. </span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="idm46846458957760"></a><h2>Description</h2>
<div class="refsect2">
<a name="idm46846458957344"></a><h3>
<a name="boost.log.sinks.basic_fo_idm45961919184896.formatting_contextconstruct-copy-destruct"></a><code class="computeroutput">formatting_context</code> 
        public
       construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="idm45961919171344-bb"></a><span class="identifier">formatting_context</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="idm45961919171056-bb"></a><span class="identifier">formatting_context</span><span class="special">(</span><span class="keyword">unsigned</span> <span class="keyword">int</span> version<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span> <span class="keyword">const</span> <span class="special">&amp;</span> loc<span class="special">,</span> 
                   <span class="identifier">formatter_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> formatter<span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2007-2021 Andrey Semashev<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>).
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../basic_fo_idm45961919184896.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_fo_idm45961919184896.html#idm46846459100176"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="formatting_context/cleanup_guard.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
